home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Libraries / VideoToolbox 97.08.16 / Precompiled headers / VideoToolbox.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-16  |  2.2 KB  |  50 lines  |  [TEXT/KAHL]

  1. /*
  2. VideoToolbox.c
  3.  
  4. You should ask THINK C to precompile this file in order to precompile the VideoToolbox.h header. 
  5.  
  6. (If you're using Metrowerks CodeWarrior, then use the VideoToolbox.pch instead of this file.
  7. It will automatically generate the correct file name for the precompiled header and store 
  8. it in the right place.)
  9.  
  10. All the pre-compiled headers should be stored in "VideoToolbox:Pre-compiled headers:". 
  11. Here's my naming convention for pre-compiled headers:
  12. "VideoToolbox.pre" = THINK C, 68k, 2-byte int, "universal" floating format, w/o 8881 fpu.
  13. "VideoToolbox.f.pre" = THINK C, 68k, 2-byte int, "universal" floating format, w 8881 fpu.
  14. "VideoToolbox.68k...." = CodeWarrior, 68k,...
  15. "VideoToolbox.ppc...." = CodeWarrior, PowerPC, ...
  16.  
  17. INSTRUCTIONS:
  18. While you have this file open in THINK C, select Precompile from the Source menu. 
  19. Save the result as either "VideoToolbox.f.pre" (if 8881 code is enabled) or "VideoToolbox.pre" 
  20. (if 8881 code is disabled) in the "VideoToolbox:Pre-compiled headers:" folder. 
  21. You can then speed up the compilation of any project roughly tenfold by typing the line
  22.     #include "VideoToolbox.f.pre"
  23. (or whichever prefix file is appropriate) into the Edit:Options:THINK C:Prefix window. 
  24.  
  25. Note that Precompilation ignores the project prefix.
  26.  
  27. Unfortunately THINK C never checks whether a precompiled header is out of
  28. date. If you update any of the Apple, Standard C, or VideoToolbox.h headers,
  29. then you should recreate the precompiled header. Also, the precompiled header
  30. will reflect the compiler and language settings in effect at the time of
  31. precompilation (e.g. size of int and double), so if you have different projects
  32. with different settings then you may need various versions of the precompiled
  33. header.
  34.  
  35. You can add this file to your project. It won't generate any code or affect your
  36. project in any way. It merely keeps this file handy.
  37.  
  38. HISTORY:
  39. 2/27/93    dgp    Wrote it.
  40. 4/22/93    dgp    Updated comments.
  41. 9/8/93    dgp    Updated comments.
  42. 9/12/93    dgp    Updated comments.
  43. 9/15/93    dgp    Updated comments.
  44. 10/20/94 dgp Update comments.
  45. 6/1/95 dgp updated comments, referred Metrowerks CodeWarrior users to VideoToolbox.pch file.
  46. 9/16/96 dgp updated comments.
  47. */
  48.  
  49. #include "VideoToolbox.h"
  50.